<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="__STATIC__/Index/css/fk.css" />
        <link rel="stylesheet" href="__STATIC__/Index/css/myOrder.css" />
        <link rel="stylesheet" type="text/css" href="__STATIC__/Index/css/success.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/Index/css/myAddress.css"/>
		<link rel="stylesheet" type="text/css" href="__STATIC__/hdjs/hdjs.css"/>
        <link rel="stylesheet" type="text/css" href="__STATIC__/index/css/myCart1.css"/>
        <script type="text/javascript" src="__STATIC__/js/jquery-1.8.2.min.js"></script>
        <script type="text/javascript">
            var sonRess = "{|U:'get_ress'}";
        </script> 
        <script type="text/javascript" src="__STATIC__/index/js/address.js"></script>
	</head>
	<body>
	    <!--载入公共页面头部区域-->
        <include file="__VIEW__/common/header.html" />
        
        <!--当前位置开始-->
        <div id="Myposition">
            <div class="left">
                <span>您当前的位置：</span>
                <a href="">凡客首页</a>         
                >
                <a href="">我的凡客</a>
                >
                <a href="">我的地址</a>     
            </div>
        </div>

        <!--当前位置结束-->
        <!--个人中心区域-->
        <div id="wrapper">
            <!--我的凡客左边列表开始-->
            <include file="__VIEW__/common/left.html" />
            <!--我的凡客左边列表结束-->
    				
    		<div class='olist rightContent'>
    		    <div class="ordertitle" style="margin-bottom:20px; border:none;">
                    <h3><span>地址资料</span></h3>
                </div>
                
    			<table border="0" cellspacing="0" cellpadding="0">
    				<tr class='title'><th>收货人</th><th>详细地址</th><th>电话/手机</th><th>操作</th></tr>
    				<foreach from="$addData" key="$k" value="$v">
    				    <tr><td>{$v.consignee}</td><td>{$v.address}</td><td>{$v.mobile}</td><td>[<a href="{|U:'exit',array('id'=>$v['addid'])}">编辑</a>] [<a href="{|U:'del',array('id'=>$v['addid'])}">删除</a>]</td></tr>
    				</foreach>
    			</table>
    			<button class="hd-btn hd-btn-success add_ress">添加新地址</button>
    			<!--添加地址-->
    			<form action="{|U:'addData'}" method="post">
                    <div class="addForm" style="display: none;">
                            <ul>
                                <li class="keyi"><p>添加新地址<a href="javascript:;" class="closeAddress" style="float: right;margin-right:30px;text-decoration: none;">[关闭]</a></p></li>
                                <li><!--收货人-->
                                    <div><span>*</span> 收  货  人:&nbsp;</div>
                                    <div >
                                        <input type="text" name="consignee" id="addressee" placeholder="请准确填写真实姓名" />
                                    </div>
                                </li><!--收货人结束-->
                                <li><!--地区-->
                                    <div><span>*</span> 地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区:</div>
                                    <div class="AddInfo" >
                                        <select class="address" name="province"  style="width:150px;height: 25px; float: left;">
                                            <option>请选择省/直辖市</option>
                                            <foreach from="$addressData" key="$k" value="$v">
                                                <option value="{$v.area_id}">{$v.area_name}</option>
                                            </foreach>
                                        </select>
                                        <select class="address" name="city" style="width:150px;height: 25px;float: left;"></select>
                                        <select class="address" name="county" style="width:150px;height: 25px;float: left;"></select>
                                    </div>
                                </li><!--地区结束-->
                                <li><!--详细地址-->
                                    <div><span>*</span> 详细地址:</div>
                                    <div>
                                        <input id="" class="" name="address" maxlength="80" placeholder="请填写详细路名及门牌号" value="" type="text" style="width:310px;">
                                        <p class="error">请选择县/区</p><!--错误提示-->
                                    </div>
                                </li><!--详细地址结束-->
                                <li><!--邮政编码-->
                                    <div><span>*</span> 邮政编码:</div>
                                    <div >
                                        <input placeholder="请填写正确的邮政编码" id="postal-code" name="zipCode" class="" value="" maxlength="6" type="number" style="width:160px;">
                                        <p class="error"></p><!--错误提示-->
                                    </div>
                                </li><!--邮政编码结束-->
                                <li><!--手机和座机-->
                                    <div><span>*</span>&nbsp;手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机:</div>
                                    <div>
                                        <input id="" class="" name="mobile" maxlength="" placeholder="手机" value="" type="tel" style="width:160px;">
                                        <p class="error">请填写正确的手机号码</p><!--错误提示-->
                                    </div>
                                </li><!--手机和座机结束-->
                                <li><input class="save_new_addr" type="submit" value=""/></li>
                            </ul>                       
                    </div>
                </form>
                <!--添加地址结束-->
    		</div>
		</div>
		<!--载入公共页面底部区域-->
        <include file="__VIEW__/common/foot.html" />
	</body>
</html>
